class BG3ImageBoxUIElement extends BG3UIElement;

//texture source
var Texture2D texture;

//for testing
var bool bLeftPressed;

//overwritten
simulated function OnLeftPressed(BG3PlayerController controller)
{
	//do gamelogic here
	//testing for now
	bLeftPressed = true;
	if(controller.Pawn != none)
	{
		controller.ServerSuicide();
	}

	if(BG3PlayerReplicationInfo(controller.PlayerReplicationInfo) != none)
	{
		BG3PlayerReplicationInfo(controller.PlayerReplicationInfo).SetClassInfoTo(class'BG3GermanScoutInfo');
	}
}


simulated function OnMouseOver()
{
	DrawColor.R = 100;
}

simulated function OnMouseOut()
{
	DrawColor.R = 255;
}

//overwritten
simulated function Draw(Canvas drawonthis)
{
	if(drawonthis != none)
	{
		super.Draw(drawonthis);
		drawonthis.DrawRect(SizeX,SizeY);
		//testing
		if(bLeftPressed)
		{
			drawonthis.Font = class'Engine'.static.GetSmallFont();
			drawonthis.DrawText("button pressed");
		}
	}
}

defaultproperties
{

}